// StandardDetailVO.java

package com.ddm.vo;

import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.ddm.entity.Level1;
import com.ddm.entity.Standard;
import com.ddm.entity.Term;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;


/**
 * StandardDetailVO
 */
@Data
public class StandardDetailVO {
    private Standard standard;
    private Long fileId;
    private String file;
    private String fileName;
    private List<Term> terms;
    private List<Level1> level1;
    public void setTerms(List<Term> terms){
        if (CollectionUtils.isNotEmpty(terms)) {
            this.terms = new ArrayList<>();
            this.terms.addAll(terms);
        }
    }
    public void setLevel1(List<Level1> level1List) {
        if (CollectionUtils.isNotEmpty(level1List)) {
            this.level1 = new ArrayList<>();
            this.level1.addAll(level1List);
        }
    }
}